//
//  SYDTravelCell.m
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/15.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import "SYDTravelCell.h"

@interface SYDTravelCell()
@property (weak, nonatomic) IBOutlet UILabel *orderTimeLbl;
@property (weak, nonatomic) IBOutlet UILabel *moneyLbl;
@property (weak, nonatomic) IBOutlet UILabel *statusLbl;
@property (weak, nonatomic) IBOutlet UILabel *startLocationLbl;
@property (weak, nonatomic) IBOutlet UILabel *endLocationLbl;

@end
@implementation SYDTravelCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)travelCellWithModel:(BriefOrderModel *)briefOrderModel{
    self.orderTimeLbl.text = briefOrderModel.firstStationTime;
    self.moneyLbl.text = [NSString stringWithFormat:@"￥ %@",briefOrderModel.amount];
    if ([briefOrderModel.status isEqual:[NSNull null]]) {
        self.statusLbl.text = @"未完成";
    }else{
    self.statusLbl.text = [briefOrderModel.status  isEqualToString: @"1"]?@"收款成功":@"未完成";
    }    
    self.startLocationLbl.text = briefOrderModel.firstStationName;
    self.endLocationLbl.text = briefOrderModel.lastStationName;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
